<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title>编辑项目进程信息</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript">
        var projectAccept=false;
        var projectDesign=false;
        var projectFSD=false;
        <c:if test="${projectAccept==null}">
        projectAccept=true;
        </c:if>
        <c:if test="${projectDesign==null}">
        projectDesign=true;
        </c:if>
        <c:if test="${projectFSD==null}">
        projectFSD=true;
        </c:if>
    </script>
    <script type="text/javascript" src="${ctx}/resources/js/threeSimultaneities/projectApproval/edit.js"></script>
    <style>
        .enclosure{width: 960px;float:left;}
        .lable-accessory{display:block;float:left;width: 75px;pxmargin-top: 10px;padding-left: 10px;text-align: right;margin-top: 10px;}
        .l-btn{background: #97f0ed;}
    </style>
</head>
<body>
<div class="menu-right" style="width:80px;">
    <a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>
</div>
<form id="projectInfo" method="POST">
    <div class="information">
        <div class="information-title">
            <p>项目基本信息</p>
            <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
        </div>
        <div class="cuttle">
            <input type="hidden" id="projectApprovalId" name="id" value="${projectApproval.id}"/>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">项目名称:</label>
                    <input id="projectName" name="projectName" type="text" class="easyui-textbox"  style="width: 240px;" editable="false"value="${projectApproval.projectName}">
                    <input type="hidden" id="projectId" name="projectId" style="width: 240px;"value="${projectApproval.projectId}">
                </div>
                <div class="form_one">
                    <label class="lable-style">项目级别:</label>
                    <input id="projectLevel" name="projectLevel" type="text" class="easyui-textbox" style="width: 240px;"  editable="false"value="${projectApproval.projectLevel}">
                </div>
                <div class="form_one">
                    <label class="lable-style">监管级别:</label>
                    <input id="supervisionLevel" name="supervisionLevel" type="text" class="easyui-textbox" style="width: 240px;" editable="false" value="${projectApproval.supervisionLevel}">
                </div>
            </div>
            <div class="district-wrap" style="clear: both">
                <div class="form_one">
                    <label class="lable-style">所属部门:</label>
                    <input id="deptName" name="deptName" type="text" class="easyui-textbox " style="width: 240px;" editable="false" value=" ${projectApproval.deptName}">
                </div>
                <div class="form_one">
                    <label class="lable-style">项目类别:</label>
                    <input id="projectType" name="projectType" type="text" class="easyui-textbox " style="width: 240px;" editable="false" value="${projectApproval.projectType}">
                </div>
                <div class="form_one">
                    <label class="lable-style">投资额度:</label>
                    <input id="investQuota" name="investQuota" type="text" class="easyui-textbox " style="width: 240px;"  editable="false" value="${projectApproval.investQuota}">
                </div>
            </div>
            <div class="district-wrap" style="clear: both">
                <div class="form_one">
                    <label class="lable-style">可研批复日期:</label>
                    <input id="feasibilityTime" name="feasibilityTime" class="easyui-datebox" style="width: 240px;" data-options="required:true,editable:false" value="${projectApproval.feasibilityTime}">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">涉及专业:</label>
                    <input id="querySpecialtye" name="specialtyId" type="text" class="easyui-textbox " style="width: 240px;" data-options="required:true" value="${SpecialtyList}">
                    <input id="specialtyNames" name="specialtyNames" type="hidden">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">当前状态:</label>
                    <input id="queryOperationState" name="operationStateId" type="text" class="easyui-textbox " style="width: 240px;"data-options="required:true" value="${projectApproval.operationStateId}">
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two">
                    <label class="lable-style">停止原因:</label>
                    <input id="stoppageReasons" name="stoppageReasons" type="text" class="easyui-textbox" data-options="multiline:true" style="height: 60px;width: 600px;"value="${projectApproval.stoppageReasons}"/>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>委托函信息</p>
            <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">发函机构:</label>
                    <input id="entrustUnit" name="entrustUnit" type="text" class="easyui-textbox"  style="width: 240px;" value="${projectApproval.entrustUnit}">
                </div>
                <div class="form_one">
                    <label class="lable-style">发函日期:</label>
                    <input id="entrustTime" name="entrustTime" data-options="editable:false" class="easyui-datebox" style="width: 240px;" value="${projectApproval.entrustUnit}">
                </div>
                <div class="form_one">
                    <label class="lable-style">函文文号:</label>
                    <input id="entrustFileCode" name="entrustFileCode" type="text" class="easyui-textbox" style="width: 240px;"value="${projectApproval.entrustFileCode}">
                </div>
            </div>
            <div class="district-wrap" style="clear: both">
                <label class="lable-accessory">函文文件:</label>
                <accessory:accessorySimple permission="write" packageKey="project_entrust" uploadUserId="${loginUser.id}" packageInfos="${accessoryList}"
                                           accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
            </div>
        </div>
    </div>
</form>
<div class="information">
    <div class="information-title">
        <p>项目阶段信息</p>
        <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
    </div>
    <div class="cuttle"style="position: relative">
        <div class="menu-right" style="width:80px;position: absolute;margin-top:5px;right:5px;z-index:9999">
            <a id="btn_projectStage_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>
        </div>
        <div id="tt" class="easyui-tabs" style="width:1110px;justified:true;fit:true;margin-bottom: 10px;">
            <div id="fsd" title="可研阶段" style="padding:10px;">
                <form id="projectFSD" method="POST">
                    <div style="width:1090px;">
                        <input type="hidden" id="projectApprovalId1" name="projectApprovalId" value="${projectApproval.id}"/>
                        <input type="hidden" id="projectId1" name="projectId" value="${projectApproval.projectId}"/>
                        <input type="hidden" id="projectFSDId" name="id" value="${projectFSD.id}"/>
                        <div>
                            <div class="form_one">
                                <label class="lable-style">批复机构:</label>
                                <input id="fsd_approveUnit" name="approveUnit" type="text" class="easyui-textbox" data-options="required:true" style="width: 240px;"value="${projectFSD.approveUnit}">
                                <span>*</span>
                            </div>
                            <div class="form_one">
                                <label class="lable-style">批复日期:</label>
                                <input id="fsd_approveTime" name="approveTime" type="text" class="easyui-datebox" style="width: 240px;" data-options="required:true,editable:false" value="${projectFSD.approveTime}" >
                                <span>*</span>
                            </div>
                            <div class="form_one">
                                <label class="lable-style">批复文件文号:</label>
                                <input id="fsd_approveFileCode" name="approveFileCode" type="text" class="easyui-textbox" style="width: 240px;" data-options="required:true"  value="${projectFSD.approveFileCode}">
                                <span>*</span>
                            </div>
                        </div>
                        <div style="clear: both">
                            <div class="form_one">
                                <label class="lable-style">备案机构:</label>
                                <input id="fsd_registerUnit" name="registerUnit" type="text" class="easyui-textbox" data-options="required:true" style="width: 240px;" value="${projectFSD.registerUnit}">
                                <span>*</span>
                            </div>
                            <div class="form_one">
                                <label class="lable-style">备案时间:</label>
                                <input id="fsd_registerTime" name="registerTime" type="text" class="easyui-datebox" style="width: 240px;"  data-options="required:true,editable:false" value="${projectFSD.registerTime}">
                                <span>*</span>
                            </div>
                            <div class="form_one">
                                <label class="lable-style">备案文件文号:</label>
                                <input id="fsd_registerFileCode" name="registerFileCode" type="text" class="easyui-textbox" style="width: 240px;"data-options="required:true" value="${projectFSD.registerFileCode}" >
                                <span>*</span>
                            </div>
                        </div>
                        <div class="district-wrap" style="clear: both">
                            <label class="lable-accessory">相关文件:</label>
                            <accessory:accessorySimple permission="write" packageKey="project_FSD" uploadUserId="${loginUser.id}" packageInfos="${accessoryList}"
                                                       accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                        </div>
                    </div>
                </form>
            </div>
            <div title="基础设计阶段" <c:if test="${projectFSD==null}"> data-options="disabled:true" </c:if> style="padding:10px;">
                <form id="projectDesign" method="POST">
                    <div style="width:1090px;">
                        <input type="hidden" id="projectApprovalId2" name="projectApprovalId" value="${projectApproval.id}"/>
                        <input type="hidden" id="projectId2" name="projectId" value="${projectApproval.projectId}"/>
                        <input type="hidden" id="projectDesignId" name="id" value="${projectDesign.id}"/>
                        <div>
                            <div class="form_one">
                                <label class="lable-style">批复机构:</label>
                                <input id="design_approveUnit" name="approveUnit" type="text" class="easyui-textbox" data-options="required:true" style="width: 240px;"value="${projectDesign.approveUnit}">
                                <span>*</span>
                            </div>
                            <div class="form_one">
                                <label class="lable-style">批复日期:</label>
                                <input id="design_approveTime" name="approveTime" type="text" class="easyui-datebox" style="width: 240px;" data-options="required:true,editable:false" value="${projectDesign.approveTime}" >
                                <span>*</span>
                            </div>
                            <div class="form_one">
                                <label class="lable-style">批复文件文号:</label>
                                <input id="design_approveFileCode" name="approveFileCode" type="text" class="easyui-textbox" style="width: 240px;" data-options="required:true"  value="${projectDesign.approveFileCode}">
                                <span>*</span>
                            </div>
                        </div>
                        <div class="district-wrap" style="clear: both">
                            <label class="lable-accessory">相关文件:</label>
                            <accessory:accessorySimple permission="write" packageKey="project_design" uploadUserId="${loginUser.id}" packageInfos="${accessoryList}"
                                                       accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                        </div>
                    </div>
                </form>
            </div>
            <div title="验收阶段" <c:if test="${projectDesign==null}"> data-options="disabled:true" </c:if> style="padding:10px;">
                <form id="projectAccept" method="POST">
                    <div style="width:1090px;">
                        <input type="hidden" id="projectApprovalId3" name="projectApprovalId" value="${projectApproval.id}"/>
                        <input type="hidden" id="projectId3" name="projectId" value="${projectApproval.projectId}"/>
                        <input type="hidden" id="projectAcceptId" name="id" value="${projectAccept.id}"/>
                        <div>
                            <div class="form_one">
                                <label class="lable-style">批复机构:</label>
                                <input  name="approveUnit" type="text" class="easyui-textbox" data-options="required:true" style="width: 240px;"value="${projectAccept.approveUnit}">
                                <span>*</span>
                            </div>
                            <div class="form_one">
                                <label class="lable-style">批复日期:</label>
                                <input  name="approveTime" type="text" class="easyui-datebox" style="width: 240px;" data-options="required:true,editable:false" value="${projectAccept.approveTime}" >
                                <span>*</span>
                            </div>
                            <div class="form_one">
                                <label class="lable-style">批复文件文号:</label>
                                <input  name="approveFileCode" type="text" class="easyui-textbox" style="width: 240px;" data-options="required:true"  value="${projectAccept.approveFileCode}">
                                <span>*</span>
                            </div>
                        </div>
                        <div class="district-wrap" style="clear: both">
                            <label class="lable-accessory">相关文件:</label>
                            <accessory:accessorySimple permission="write" packageKey="project_accept" uploadUserId="${loginUser.id}" packageInfos="${accessoryList}"
                                                       accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>

